﻿using System.Collections;
using System.Collections.Generic;

namespace Sessionizer.Samples.Model.Imp
{
    public sealed class Top : ITop
    {
        private readonly IEnumerable<ITopRecord> _records;

        public Top(IEnumerable<ITopRecord> records)
        {
            _records = records;
        }

        public IEnumerator<ITopRecord> GetEnumerator()
        {
            return _records.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
}